<?php
/*
  $Program: ECJC Online Shop
  $Id: header.php
  $Based on: osCommerce, Open Source E-Commerce Solutions
  Released under the GNU General Public License
*/

if(! class_exists( 'JConfig' )){
?>
<div id="wrapper">
	<div id="header">
			<div id="joomla"><a href="<?php echo tep_href_link(FILENAME_DEFAULT);?>"><?php echo tep_image(DIR_WS_IMAGES . 'oscommerce.png', 'ECJC', '', '38'); ?></a></div>
	</div>
</div>

<?php 
}else{
?>

<div id="border-top" class="h_teal">
<div id="header">
			<div id="joomla"><a href="<?php echo tep_href_link(FILENAME_DEFAULT);?>"><?php echo tep_image(DIR_WS_IMAGES . 'oscommerce.png', 'ECJC', '', '38'); ?></a></div>
	</div>
</div>

<?php
}

  
  ?>
<table width="100%" class="menubar" cellpadding="0" cellspacing="0" border="0">
<tr>
	<td class="menubackgr" style="padding-left:5px;">
	<a href="index3.php?option=com_oscommerce&osMod=index" style="color: #0056A1; font-weight: bold">
			Back to ECJC Admin Panel</a> &nbsp; &nbsp;| &nbsp; &nbsp;
<a href="index3.php?option=com_oscommerce&osMod=faqs" style="color: #0056A1; font-weight: bold">
			ECJC FAQ's / About</a> &nbsp; &nbsp;| &nbsp; &nbsp;
<a href="index3.php?option=com_oscommerce&osMod=upgradedb" style="color: #0056A1; font-weight: bold">
			Upgrade DB</a> &nbsp; &nbsp;| &nbsp; &nbsp;
	<a href="index3.php" style="color: #0056A1; ">
			Return to Joomla Admin</a> &nbsp; &nbsp;| &nbsp; &nbsp;
	<a href="../index.php?option=com_oscommerce" target="_blank" style="color:#CC6600; ">
			View your Shop</a>
<?php if(MODULE_PAYMENT_INSTALLED == ''){
?>
&nbsp; &nbsp;| &nbsp; &nbsp;<a href="index3.php?option=com_oscommerce&osMod=modules&selected_box=modules&set=payment" style="color: red; font-weight: bold"><big>NO PAYMENT MODULES INSTALLED</big></a>
<?php

}
?>
	</td>
	<td class="menubackgr" align="right">
		<div id="wrapper1">
			<?php mosLoadAdminModules( 'header', 2 );?>
		</div>
	</td>
	<td class="menubackgr" align="right" style="padding-right:5px;">
	<?php
	//check joomla version
	if(!class_exists( 'JConfig' ) ){
	//version 1.0.xxx
	?>
		<a href="index2.php?option=logout" style="color: #333333; font-weight: bold">
			Logout</a>
	<?php
	}else{
	//version 1.5.xx
	
	?>
	<a href="index.php?option=com_login&task=logout" style="color: #333333; font-weight: bold">
			Logout</a>
	<?php
	}
	?>		
		<strong><?php echo $my->username;?></strong>
	</td>
</tr>
</table>
<link rel="stylesheet" type="text/css" href="<?php echo DIR_WS_COMPONENT ?>stylesheet_navi.css" />
<script language="javascript" type="text/javascript" src="<?php echo DIR_WS_COMPONENT ?>javascript_navi.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo DIR_WS_COMPONENT ?>hide_show.js"></script>

<div id="menubar" style="padding-bottom:20px;">
<ul id="navMenu">
<li id="n1">
<a href="<?php echo tep_href_link(FILENAME_CONFIGURATION, 'gID=1&selected_box=configuration')?>"><?php echo BOX_HEADING_CONFIGURATION ?></a>
<ul>
<?php
$configuration_groups_query = tep_db_query("select configuration_group_id as cgID, configuration_group_title as cgTitle from " . TABLE_CONFIGURATION_GROUP . " where visible = '1' order by sort_order");
    while ($configuration_groups = tep_db_fetch_array($configuration_groups_query)) {
// PLMresearch change for register_globals = 0
      echo '<li><a href="' . tep_href_link(FILENAME_CONFIGURATION, 'gID=' . $configuration_groups['cgID'] . '&selected_box='. $selected_box, 'NONSSL') . '" >' . $configuration_groups['cgTitle'] . '</a></li>';
      }
      ?>
</ul>
</li>
<li id="n2">
<a href="<?php echo tep_href_link(FILENAME_CATEGORIES, 'selected_box=catalog')?>"><?php echo BOX_HEADING_CATALOG ?></a>
<ul>

<li><a href="<?php echo tep_href_link(FILENAME_CATEGORIES, 'selected_box=catalog')?>"><?php echo BOX_CATALOG_CATEGORIES_PRODUCTS ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_PRODUCTS_ATTRIBUTES, 'selected_box=catalog')?>"><?php echo BOX_CATALOG_CATEGORIES_PRODUCTS_ATTRIBUTES ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_PRODUCTS_EXTRA_IMAGES, '', 'NONSSL'); ?>" class="menuBoxContentLink"><?php echo BOX_CATALOG_CATEGORIES_PRODUCTS_EXTRA_IMAGES ?></a></li>
<li><a href="<?php echo  tep_href_link(FILENAME_PRODUCTS_EXTRA_FIELDS, '', 'NONSSL');?>"><?php echo BOX_CATALOG_PRODUCTS_EXTRA_FIELDS;?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_PRODUCTS_MULTI, 'selected_box=catalog') ?>" class="menuBoxContentLink"><?php echo BOX_CATALOG_CATEGORIES_PRODUCTS_MULTI ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_EXCEL_IMPORTEXPORT, '', 'NONSSL') ?>"><?php echo BOX_CATALOG_EXCEL_IMPORTEXPORT ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_PRICE_UPDATER, '', 'NONSSL') ?>"><?php echo BOX_CATALOG_PRICE_UPDATER ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_QUICK_UPDATES, '', 'NONSSL') ?>"><?php echo BOX_CATALOG_QUICK_UPDATES ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_COMPUBUILD, '', 'NONSSL'); ?>" class="menuBoxContentLink"><?php echo  BOX_COMP_SETTINGS; ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_MANUFACTURERS, 'selected_box=catalog')?>"><?php echo BOX_CATALOG_MANUFACTURERS ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_REVIEWS, 'selected_box=catalog')?>"><?php echo BOX_CATALOG_REVIEWS ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_SPECIALS, 'selected_box=catalog')?>"><?php echo BOX_CATALOG_SPECIALS ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_CONTEST)?>"><?php echo BOX_CONTEST ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_PRODUCTS_EXPECTED, 'selected_box=catalog')?>"><?php echo BOX_CATALOG_PRODUCTS_EXPECTED ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_DOMAINS, '', 'NONSSL') ?>"><?php echo BOX_DOMAINS ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_VENDORS, '', 'NONSSL') ?>"><?php echo BOX_VENDORS ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_PRODS_VENDORS, '', 'NONSSL') ?>"><?php echo BOX_VENDORS_REPORTS_PROD ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_ORDERS_VENDORS, '', 'NONSSL') ?>"><?php echo BOX_VENDORS_ORDERS ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_MOVE_VENDORS, '', 'NONSSL') ?>" ><?php echo BOX_MOVE_VENDOR_PRODS ?></a></li>
<li><a href="<?php echo  tep_href_link(FILENAME_AUCTIONS_PRODUCTS, '', 'NONSSL') ?>" ><?php echo  BOX_CATALOG_AUCTIONS_PRODUCTS ?></a></li>

</ul>
</li>
<li id="n3">
<a href="<?php echo tep_href_link(FILENAME_MODULES, 'selected_box=modules&set=payment')?>"><?php echo BOX_HEADING_MODULES ?></a>
<ul>
<li><a href="<?php echo tep_href_link(FILENAME_MODULES, 'selected_box=modules&set=payment')?>"><?php echo BOX_MODULES_PAYMENT ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_MODULES, 'selected_box=modules&set=shipping')?>"><?php echo BOX_MODULES_SHIPPING ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_MODULES, 'selected_box=modules&set=ordertotal')?>"><?php echo BOX_MODULES_ORDER_TOTAL ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_MODULES, 'set=themes', 'NONSSL') ?>" ><?php echo BOX_MODULES_THEMES ?></a></li>
</ul>
</li>
<li id="n4">
<a href="<?php echo tep_href_link(FILENAME_CUSTOMERS, 'selected_box=customers')?>"><?php echo BOX_HEADING_CUSTOMERS ?></a>
<ul>
<li><a href="<?php echo tep_href_link(FILENAME_CUSTOMERS, 'selected_box=customers')?>"><?php echo BOX_CUSTOMERS_CUSTOMERS ?></a></li>
<li><a href="<?php echo tep_href_link('customers_groups.php', '', 'NONSSL'); ?>" ><?php echo BOX_CUSTOMERS_GROUPS; ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_ORDERS, 'selected_box=customers')?>"><?php echo BOX_CUSTOMERS_ORDERS ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_EXTRA_FIELDS) ?>" ><?php echo BOX_TOOLS_EXTRA_FIELDS_MANAGER ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_SUPPLIERSADMIN, '', 'NONSSL'); ?>" class="menuBoxContentSupplier"><?php echo BOX_SUPPLIERADMIN ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_SETCOM, '', 'NONSSL') ?>" ><?php echo BOX_CUSTOMERS_SETCOM ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_CUSTOMERS_POINTS, '', 'NONSSL') ?>" ><?php echo BOX_CUSTOMERS_POINTS ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_CUSTOMERS_POINTS_PENDING, '', 'NONSSL') ?>" ><?php echo BOX_CUSTOMERS_POINTS_PENDING ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_CUSTOMERS_POINTS_REFERRAL, '', 'NONSSL') ?>"><?php echo BOX_CUSTOMERS_POINTS_REFERRAL ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_COUPON_ADMIN, '', 'NONSSL')?>" ><?php echo BOX_COUPON_ADMIN; ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_GV_QUEUE, '', 'NONSSL') ?>" ><?php echo BOX_GV_ADMIN_QUEUE ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_GV_MAIL, '', 'NONSSL')?>" ><?php echo BOX_GV_ADMIN_MAIL ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_GV_SENT, '', 'NONSSL')?>" > <?php echo BOX_GV_ADMIN_SENT ?></a></li>
<li><a href="index3.php?option=com_oscommerce&osMod=export_orders_csv">CSV Order Export</a></li>
<li><a href="<?php echo tep_href_link(FILENAME_SUBSCRIPTION_CUSTOMERS, '', 'NONSSL') ?>"><?php  echo BOX_SUBSCRIPTIONS_CUSTOMERS ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_SUBSCRIPTION_PREFFERANCES, '', 'NONSSL') ?>"><?php  echo  BOX_SUBSCRIPTION_PREFFERANCES ?></a></li><!--
<li><a href="<?php echo tep_href_link(FILENAME_SUBSCRIPTION_LEVELS, '', 'NONSSL') ?>"><?php  echo  BOX_SUBSCRIPTION_LEVELS ?></a></li>-->
</ul>
</li>
<li id="n5">
<a href="<?php echo tep_href_link(FILENAME_COUNTRIES, 'selected_box=taxes')?>"><?php echo BOX_HEADING_LOCALIZATION ?></a>
<ul>
<li><a href="<?php echo tep_href_link(FILENAME_COUNTRIES, 'selected_box=taxes')?>"><?php echo BOX_TAXES_COUNTRIES ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_ZONES, 'selected_box=taxes')?>"><?php echo BOX_TAXES_ZONES ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_GEO_ZONES, 'selected_box=taxes')?>"><?php echo BOX_TAXES_GEO_ZONES ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_TAX_CLASSES, 'selected_box=taxes')?>"><?php echo BOX_TAXES_TAX_CLASSES ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_TAX_RATES, 'selected_box=taxes')?>"><?php echo BOX_TAXES_TAX_RATES ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_CURRENCIES, 'selected_box=localization')?>"><?php echo BOX_LOCALIZATION_CURRENCIES ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_LANGUAGES, 'selected_box=localization')?>"><?php echo BOX_LOCALIZATION_LANGUAGES ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_VERIFY_LANGUAGE, '', 'NONSSL') ?>" class="menuBoxContentLink"><?php echo BOX_LOCALIZATION_VERIFY_LANGUAGES ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_ORDERS_STATUS, 'selected_box=localization')?>"><?php echo BOX_LOCALIZATION_ORDERS_STATUS ?></a></li>
</ul>
</li>
<li id="n6">
<a href="<?php echo tep_href_link(FILENAME_AFFILIATE, 'selected_box=affiliate')?>"><?php echo BOX_HEADING_AFFILIATE ?></a>
<ul>
<li><a href="<?php echo tep_href_link(FILENAME_AFFILIATE_SUMMARY, '', 'NONSSL') ?>"><?php echo BOX_AFFILIATE_SUMMARY ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_AFFILIATE, '', 'NONSSL') ?>"><?php echo BOX_AFFILIATE ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_AFFILIATE_PAYMENT, '', 'NONSSL')?>" ><?php echo BOX_AFFILIATE_PAYMENT ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_AFFILIATE_SALES, '', 'NONSSL') ?>" ><?php echo BOX_AFFILIATE_SALES ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_AFFILIATE_CLICKS, '', 'NONSSL') ?>" ><?php echo BOX_AFFILIATE_CLICKS ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_AFFILIATE_BANNER_MANAGER, '', 'NONSSL') ?>"><?php echo BOX_AFFILIATE_BANNERS ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_AFFILIATE_NEWS, '', 'NONSSL') ?>" ><?php echo BOX_AFFILIATE_NEWS ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_AFFILIATE_NEWSLETTERS, '', 'NONSSL') ?>" ><?php echo BOX_AFFILIATE_NEWSLETTER_MANAGER ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_AFFILIATE_CONTACT, '', 'NONSSL') ?>" ><?php echo BOX_AFFILIATE_CONTACT ?></a></li>
</ul>
</li>
<li id="n8">
<a href="<?php echo tep_href_link(FILENAME_STATS_PRODUCTS_PURCHASED, 'selected_box=reports')?>"><?php echo BOX_HEADING_REPORTS ?></a>
<ul>
<li><a href="<?php echo tep_href_link(FILENAME_STATS_PRODUCTS_VIEWED, 'selected_box=reports')?>"><?php echo BOX_REPORTS_PRODUCTS_VIEWED ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_STATS_PRODUCTS_PURCHASED, 'selected_box=reports')?>"><?php echo BOX_REPORTS_PRODUCTS_PURCHASED ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_STATS_LOW_STOCK, '', 'NONSSL'); ?>" class="menuBoxContentLink"><?php echo BOX_REPORTS_STOCK_LEVEL ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_STATS_CUSTOMERS, 'selected_box=reports')?>"><?php echo BOX_REPORTS_ORDERS_TOTAL ?></a></li>
<li><a href="<?php echo  tep_href_link(FILENAME_STATS_CREDITS, '', 'NONSSL'); ?>" class="menuBoxContentLink"><?php echo  BOX_REPORTS_CREDITS ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_STATS_RECOVER_CART_SALES, '', 'NONSSL') ?>" ><?php echo BOX_REPORTS_RECOVER_CART_SALES ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_TRACKER, '', 'NONSSL') ?>"><?php echo BOX_TRACKER ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_REPORT_SPPC, '', 'NONSSL') ?>"><?php echo BOX_REPORT_SPPC ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_STATS_PRODUCTS_BACKORDERED, '', 'NONSSL')?>" ><?php echo BOX_REPORTS_PRODUCTS_BACKORDERED ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_STATS_DISPATCH, '', 'NONSSL') ?>" class="menuBoxContentLink"><?php echo  BOX_REPORTS_DISPATCH ?></a></li>
<li><a href="<?php echo tep_href_link('customer_stats.php', '', 'NONSSL') ?>" class="menuBoxContentLink"><?php echo BOX_CUSTOMER_REGISTRATIONS ?></a></li>
<li><a href="<?php echo tep_href_link('domains_searches.php','', 'NONSSL') ?>" class="menuBoxContentLink"><?php echo BOX_DOMAINS_SEARCHES ?></a></li>
</ul>
</li>
<li id="n9">
<a href="<?php echo tep_href_link(FILENAME_BACKUP, 'selected_box=tools')?>"><?php echo BOX_HEADING_TOOLS ?></a>
<ul>
<li><a href="<?php echo tep_href_link(FILENAME_BACKUP, 'selected_box=tools')?>"><?php echo BOX_TOOLS_BACKUP ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_BANNER_MANAGER, 'selected_box=tools')?>"><?php echo BOX_TOOLS_BANNER_MANAGER ?></a></li>

<li><a href="<?php echo tep_href_link(FILENAME_DEFINE_LANGUAGE, 'selected_box=tools')?>"><?php echo BOX_TOOLS_DEFINE_LANGUAGE ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_MAIL, 'selected_box=tools')?>"><?php echo BOX_TOOLS_MAIL ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_NEWSLETTERS, 'selected_box=tools')?>"><?php echo BOX_TOOLS_NEWSLETTER_MANAGER ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_SERVER_INFO, 'selected_box=tools')?>"><?php echo BOX_TOOLS_SERVER_INFO ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_WHOS_ONLINE, 'selected_box=tools')?>"><?php echo BOX_TOOLS_WHOS_ONLINE ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_TESTIMONIALS_MANAGER) ?>"><?php echo BOX_TOOLS_TESTIMONIALS_MANAGER ?></a></li>

<li><a href="<?php echo tep_href_link(FILENAME_RECOVER_CART_SALES, '', 'NONSSL') ?>" ><?php echo BOX_TOOLS_RECOVER_CART ?></a></li>
<li><a href="<?php echo tep_href_link(FILENAME_FAQ, '', 'NONSSL') ?>" ><?php echo BOX_FAQ_LINK ?></a></li>
<li><a href="<?php echo tep_href_link("manual.php",'','NONSSL') ?>">User Manual</a></li>
<li><b>EXPERIMENTAL AREA</b></li>
<li><a href="<?php echo tep_href_link("catprodnew.php")?>">Category Tree</a></li>
<li><a href="<?php echo tep_href_link("prodman.php")?>">Product Tree</a></li>
</ul>
</li>
<li id="n7">
<a href="<?php echo tep_href_link(FILENAME_MODIFY_FAMILIES, 'f_Id=1&selected_box=families')?>"><?php echo BOX_HEADING_FAMILIES ?></a>
<ul>
<li><a href="<?php echo tep_href_link(FILENAME_VIEW_FAMILIES, '', 'NONSSL') ?>" ><?php echo BOX_FAMILIES_VIEW_FAMILIES ?></a></li> 
<li><a href="<?php echo tep_href_link(FILENAME_MODIFY_FAMILIES, 'f_Id=1', 'NONSSL') ?>" ><?php echo BOX_FAMILIES_MODIFY_FAMILIES ?></a></li> 
<li><a href="<?php echo tep_href_link(FILENAME_SELECT_FAMILY_DISPLAY, '', 'NONSSL') ?>" ><?php echo BOX_FAMILIES_SELECT_DISPLAY ?></a></li> 
<li><a href="<?php echo tep_href_link(FILENAME_ASSIGN_FAMILIES, '', 'NONSSL') ?>" ><?php echo BOX_FAMILIES_ASSIGN_FAMILIES ?></a></li>
</ul>
</li>
</ul>
</div>
<script language="javascript" type="text/javascript">
<!--
cssJsMenu('navMenu');
//-->
</script>
<script language="javascript" src="<?php echo DIR_WS_COMPONENT ?>includes/javascript/yetii-min.js"></script>
<?php
if ($messageStack->size > 0) {
    echo "<div class='messageStackWarning'>". $messageStack->output() .'</div>';
  }
if (isset($_GET['msg'])){
    echo "<div class='messageStackWarning'>". $_GET['msg'] .'</div>';
}
  
